#ifndef __IO_MODEL_H__
#define __IO_MODEL_H__


#include<iostream>
#include<string>

#define LISTEN_SOCKET  1
#define NETWORK_CONNECTION  2
#define WORKER_THREAD 4

//提供一个接口类;
class ioModel{
	public:
		virtual ~ioModel(){};
		virtual std::string & getIoName() = 0;
		virtual int init() = 0;
		virtual int addEvent(int fd) = 0;
		virtual int addEvent(void *arg,int type) = 0;
		virtual int delEvent(void *arg) = 0;
		virtual int waitForEvent() = 0;
		virtual void * getIoCtx() = 0;
};


#endif 
